package com.cloudy.impl;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class AwsURLEncoder {
	public static String urlEncode(String string) {
		String encoded = null;
		try {
			encoded = URLEncoder.encode(string, "UTF-8").replace("+", "%20");
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException(e);
		}
		return encoded;
	}

}
